All Questions
Tagged with system-programminglinux
14 questions
0votes
0answers
32views
How to wait for child processes to finish and then restart the systemctl service to avoid downtime?
I have a situation where I want to migration from using system slice to ABC slice for a systemctl service. Now that service is running some child processes as well during communication from data plane ...
1vote
2answers
809views
How to pass a parameter in a command without run the parameter content?
Good days. I have a little problem. I have this function in bash script function denyCheck(){ file=$(readlink -f $(which $(printf "%s\n" "$1"))) if [[ -x $file ]];then ...
0votes
0answers
191views
Does setting TCP_NODELAY disable auto-corking?
Does setting TCP_NODELAY turn off the auto corking behavior? Is there a way to disable it on a per connection basis?
0votes
1answer
474views
blkid: blkid_probe_lookup_value() - strange partition types
I need to check filesystem type on a thumb drive in my C++ application. It must be done before mounting a new partition. I also prefer not to call system() function. I tried to use the following test ...
1vote
1answer
2kviews
How pass the file's content through Named Pipe and then copy it into another one?
I wrote 2 programs that normally 1.create the named pipe(server) and 2. pass the string from the shell to the server part. I understand how to hand over a string from the terminal to the server part ...
-1votes
1answer
191views
CPU statistics calculation algorithm
I too many search on internet to found algorithm calculated %Us , %Sy , %Id , ... on result of top command . but can not found any documentation . some documents like this or this calculate cpu ...
2votes
0answers
260views
How does vlan driver pass vlan info to the h/w ethernet driver
I'm trying to implement vlans on a target programmatically. But first I wanted to set up vlans manually to help get a better understanding of vlan setup. So I setup a vlan manually on my development ...
1vote
1answer
3kviews
How to specify a namespace when creating a tun/tap device?
On linux I can create a new tun/tap device in C using something like: int fd = open("/dev/net/tun", O_RDWR); ioctl(fd, TUNSETIFF, (void *)&ifr); This will create a new network interface in the ...
2votes
0answers
2kviews
How to get minor and major page fault for individual or group of processes?
I am trying to write a program in C to run under Linux. Basically I am trying to draw a statistic that should show like: pid, number of process, page fault(major/minor) and total number of page ...
1vote
0answers
432views
How to catch my bluetooth service events
I have usb bluetooth device which is using btusb 0.6 module (driver). The thing is I am interested to know is: how is the systemctl start bluetooth.service event invoked? I was looking info about ...
4votes
1answer
594views
FILE size limitation according to Robert Love's textbook
From Robert Love's Linux System Programming (2007, O'Reilly), this is what is given in the first paragraph (Chapter 1, Page 10): The file position’s maximum value is bounded only by the size of the ...
0votes
2answers
687views
Can linux be configured as a server or workstation in DCS and how? [closed]
I am a student of Instrumentation and Control. Considering the versatility and stability of Linux, I was wondering if Linux can be configured to act as a Distributed Control System? Also if yes, ...
3votes
0answers
2kviews
modetest.c from libdrm tests lists no framebuffers
I wanted to play with KMS since it seems to be the preferred low-level graphics library on Linux. However, after compiling the appropriate modetest.c version (2.4.32, since that's the version of ...
7votes
2answers
8kviews
Learn Linux System Programming by doing projects [closed]
I have only a very basic idea about linux system programming. I have not done any real projects using linux system programming. In my current company I do system admin type work, but I am more ...